@import "mixin.less";
/* 文章样式 */
article {
    background-color: #fff;
    .padding-side {
        padding-left: 0.506667rem;
        padding-right: 0.506667rem
    }
    .head {
        padding-top: 0.293333rem;
        padding-bottom: 0.4rem;
        &.bottom-line:before {
            border-bottom-color: #e0e0e0;
        }
        .title {
            padding-bottom: 0.293333rem;
            font-size: 42px;
            color: #595959;
            .font-dpr(21px);
        }
        .info {
            color: #838383;
            font-size: 10px;
            line-height: 28px;
            [data-dpr="2"] & {
                font-size: 20px;
                line-height: 56px;
            }
            [data-dpr="3"] & {
                font-size: 30px;
                line-height: 84px;
            }
            .icon {
                width: 28px;
                height: 28px;
                [data-dpr="2"] & {
                    width: 56px;
                    height: 56px;
                }
                [data-dpr="3"] & {
                    width: 84px;
                    height: 84px;
                }
                border-radius: 100%;
                background-image: url('/img/@2x/head.png');
                background-position: 50% 50%;
                background-size: contain;
                background-repeat: no-repeat;
            }
            .source {
                padding-left: 0.133333rem;
            }
            .time {
                padding-left: 0.293333rem;
            }
        }
    }
    .content {
        // 兼容旧格式
        section {
            margin-top: 0;
            background-color: rgba(0,0,0,0);
        }
        ol {
            list-style-type: decimal;
            margin-left: .506667rem
        }
        padding-top: 0.266667rem;
        padding-bottom: 0.266667rem;
        overflow: hidden;
        color: @font-color;
        word-break: break-all;
        text-align: justify;
        font-size: 16px;
        [data-dpr="2"] & {
            font-size: 32px;
        }
        [data-dpr="3"] & {
            font-size: 48px;
        }
        line-height: 1.75;
        img {
            margin: 0 auto;
            display: block;
            max-width: 100%;
            height: auto;
        }
        * {
            font-size: 16px!important;
            [data-dpr="2"] & {
                font-size: 32px!important;
            }
            [data-dpr="3"] & {
                font-size: 48px!important;
            }
            line-height: 1.75!important;
        }
    }
    .control {
        padding-top: 1.12rem;
        padding-bottom: 0.986667rem;
        text-align: center;
    }
    .share-list {
        text-align: left;
        padding-top: 0.4rem;
        padding-bottom: 0.4rem;
        a {
            margin-right: 0.453333rem;
            display: inline-block;
        }
        &.padding-side {
            padding-left: 0.266667rem;
            padding-right: 0.266667rem;
        }
        span {
            .font-dpr(10px);
            color: @font-sec-color;
            line-height: 0.88rem;
            padding-right: 0.4rem;
        }
        li {
            width: 0.88rem;
            height: 0.88rem;
            background-size: contain;
            background-repeat: no-repeat;
        }
    }
}
section {
    margin-top: 0.266667rem;
    background-color: #fff;
}

#friend {
    .retina-image('friend.png');
}
#wechat {
    .retina-image('wechat.png');
}
#qzone {
    .retina-image('qzone.png');
}
#qq {
    .retina-image('qq.png');
}
#weibo {
    .retina-image('weibo.png');
}
/* 测评按钮 */
#test {
    position: fixed;
    right: -0.933333rem;
    bottom: 1.066667rem;
    z-index: 9999;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

/* 相关资讯 */
.relative-header, .comment-header{
    h2 {
        color: @base-color;
        font-size: 12px;
        line-height: 30px;
        [data-dpr="2"] & {
            font-size: 24px;
            line-height: 60px;
        }
        [data-dpr="3"] & {
            font-size: 36px;
            line-height: 90px;
        }
    }
    
}

.relative-header {
    a {
        color: @base-color;
        font-size: 10px;
        line-height: 30px;
        [data-dpr="2"] & {
            font-size: 20px;
            line-height: 60px;
        }
        [data-dpr="3"] & {
            font-size: 30px;
            line-height: 90px;
        }
    }
    
}

.relative li{
    padding-top: 0.293333rem;
    padding-bottom: 0.293333rem;
    .font-dpr(14px);
    &:first-child.top-line:before {
        border-bottom-color: @base-color;
    }
    a {
        color: @font-color;
        width: 100%;
        display: inline-block;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
}
